﻿/*****************************************
 * 
 *  copyright (c) by ylshen
 * 
 *  author : ylshen (syl.lucky@gmail.com)
 * 
 **************************************** */

using System;
using System.Collections.Generic;
using System.Text;

namespace JYStockAnalyser.Face
{
    [Serializable]
    public class JYException : ApplicationException
    {
        public JYException()
        {
        }

        public JYException(string message)
            : base(message)
        {
        }
    }

    [Serializable]
    public class CommonException : JYException
    {
        public CommonException()
        {
        }

        public CommonException(string message)
            : base(message)
        {
        }
    }

    /// <summary>
    /// 属性已存在异常
    /// </summary>
    [Serializable]
    public class PropertiesExistsException : JYException
    {
        string[] m_propertyNames;

        public PropertiesExistsException(string[] propertyNames)
        {
            m_propertyNames = propertyNames;
        }

        public string[] PropertyNames
        {
            get
            {
                return m_propertyNames;
            }
        }
    }
}
